package com.deyuanyun.pic.business.controller.dto;

import java.math.BigDecimal;
import java.util.Date;

public class PipeLineNewTaskVO {
    
    private BigDecimal startMileage;
    private Long startMileage2;
    private Boolean includeStart;//包括起点
    private BigDecimal endMileage;
    private Long endMileage2;
    private Boolean includeEnd;//包括终点
    private String id;
    private Date completionDate;//完成日期

    public Long getStartMileage2() {
        if(startMileage != null && startMileage2 == null){
            startMileage2 = Math.round(startMileage.movePointRight(3).doubleValue());
        }
        return startMileage2;
    }
    public Long getEndMileage2() {
        if(endMileage != null && endMileage2 == null){
            endMileage2 = Math.round(endMileage.movePointRight(3).doubleValue());
        }
        return endMileage2;
    }
    
    public BigDecimal getStartMileage() {
        if(startMileage == null && startMileage2 != null) {
            startMileage = new BigDecimal(startMileage2.floatValue()/1000);
        }
            return startMileage;
    }
    public Boolean getIncludeStart() {
        return includeStart;
    }
    public BigDecimal getEndMileage() {
        if(endMileage == null && endMileage2 != null){
            endMileage= new BigDecimal(endMileage2.floatValue()/1000);
        }
        return endMileage;
    }
    public Boolean getIncludeEnd() {
        return includeEnd;
    }
    public String getId() {
        return id;
    }
    public Date getCompletionDate() {
        return completionDate;
    }
    public void setStartMileage(BigDecimal startMileage) {
        this.startMileage = startMileage;
    }
    public void setIncludeStart(Boolean includeStart) {
        this.includeStart = includeStart;
    }
    public void setEndMileage(BigDecimal endMileage) {
        this.endMileage = endMileage;
    }
    public void setIncludeEnd(Boolean includeEnd) {
        this.includeEnd = includeEnd;
    }
    public void setId(String id) {
        this.id = id;
    }
    public void setCompletionDate(Date completionDate) {
        this.completionDate = completionDate;
    }
    public void setStartMileage2(Long startMileage2) {
        this.startMileage2 = startMileage2;
    }
    public void setEndMileage2(Long endMileage2) {
        this.endMileage2 = endMileage2;
    }
    
    
}
